// const assert = require('assert');

module.exports = class extends think.Controller {
  constructor(ctx) {
    super(ctx);

    // 加载常用的工具函数
    this.utils = think.service('utils');
  }

  async __before(action) {
    try {
      this.userInfo = await this.ctx.session('userInfo');
    } catch (err) {
      this.userInfo = {};
    }
  }

  __call() {

  }
};
